
async function testFn () {
  const res = await new Promise(function (resolve, reject) {
    setTimeout(function () {
      resolve(123)
    }, 500)
  })

  console.log(res)
}

async function fn(){
  await testFn()

  console.log(888)
}

fn()